home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- global proc channelBoxCommand( string $operation )
- //
- {
- switch( $operation ) {
- case "-key":
- channelBox -e -exe "setKeyframe \"#P.#A\";" true mainChannelBox;
- break;
- case "-keyall":
- channelBox -e -exe "setKeyframe \"#P.#A\";" false mainChannelBox;
- break;
- case "-breakdown":
- channelBox -e -exe "setKeyframe -breakdown true \"#P.#A\";" true mainChannelBox;
- break;
- case "-breakdownall":
- channelBox -e -exe "setKeyframe -breakdown true \"#P.#A\";" false mainChannelBox;
- break;
- case "-mute":
- channelBox -e -exe "mute \"#P.#A\";" true mainChannelBox;
- break;
- case "-muteall":
- channelBox -e -exe "mute \"#P.#A\";" false mainChannelBox;
- break;
- case "-unmute":
- channelBox -e -exe "mute -disable \"#P.#A\";" true mainChannelBox;
- break;
- case "-unmuteall":
- channelBox -e -exe "mute -disable \"#P.#A\";" false mainChannelBox;
- break;
- case "-lock":
- channelBox -e -exe "setAttr -lock true \"#P.#A\";" true mainChannelBox;
- break;
- case "-unlock":
- channelBox -e -exe "CBunlockAttr \"#P.#A\";" true mainChannelBox;
- break;
- case "-expression":
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- expressionEditor "EE" $objList[0] $attrList[0];
-
- } else {
- $objList = `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- expressionEditor "EE" $objList[0] $attrList[0];
-
- } else {
- $objList = `channelBox -q -historyObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- expressionEditor "EE" $objList[0] $attrList[0];
-
- } else {
- $objList = `channelBox -q -outputObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- expressionEditor "EE" $objList[0] $attrList[0];
- }
- }
- }
- }
- }
- break;
- case "-driven":
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- setDrivenKeyWindow $objList[0] "";
-
- } else {
- $objList = `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- setDrivenKeyWindow $objList[0] "";
-
- } else {
- $objList = `channelBox -q -historyObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- setDrivenKeyWindow $objList[0] "";
- } else {
- $objList = `channelBox -q -outputObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- setDrivenKeyWindow $objList[0] "";
- }
- }
- }
- }
- }
- break;
- case "-cut":
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- string $cmd = "";
- int $okay = 0;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -historyObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -outputObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- if ( $okay == 1 ){
- evalEcho( $cmd );
- }
- }
- break;
- case "-copy":
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- string $cmd = "";
- int $okay = 0;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "copyKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "copyKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -historyObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "copyKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -outputObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "copyKey -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- if ( $okay == 1 ){
- evalEcho( $cmd );
- }
- }
- break;
- case "-paste":
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- string $cmd = "";
- int $okay = false;
- float $currentTime = `currentTime -query`;
- string $pasteKey = ("pasteKey -connect true -time " + $currentTime);
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + $pasteKey;
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = true;
- }
-
- $objList = `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + $pasteKey;
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = true;
- }
-
- $objList = `channelBox -q -historyObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + $pasteKey;
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = true;
- }
-
- $objList = `channelBox -q -outputObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + $pasteKey;
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = true;
- }
-
- if ( $okay ){
- evalEcho( $cmd );
- }
- }
- break;
- case "-delete":
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- string $cmd = "";
- int $okay = 0;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -cl -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -cl -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -historyObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -cl -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- $objList = `channelBox -q -outputObjectList mainChannelBox`;
- $attrList = `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- $cmd = $cmd + "cutKey -cl -t \":\" -f \":\"";
- for( $channel in $attrList )
- $cmd = $cmd + " -at \"" + $channel+"\"";
- for ( $object in $objList )
- $cmd = $cmd + " " + $object;
- $cmd = $cmd + ";\n";
- $okay = 1;
- }
-
- if ( $okay == 1 ){
- evalEcho( $cmd );
- }
- }
- break;
- case "-deleteAttributes":
- channelBox -e -exe "catch (`deleteAttr -attribute \"#A\" \"#P\"`);" true mainChannelBox;
- break;
- case "-precision":
- {
- int $oldPrecision = `optionVar -query channelsPrecision`;
- int $newPrecision = precisionPrompt ("", $oldPrecision, 15);
- if ($newPrecision > 0) {
-
- // Change the width of the fields depending on the
- // precision.
- //
- int $oldWidth = `channelBox -q -fieldWidth mainChannelBox`;
- int $newWidth;
- if ($newPrecision <= 3) {
- $newWidth = 65;
- } else if ($newPrecision <= 6) {
- $newWidth = 95;
- } else if ($newPrecision <= 9) {
- $newWidth = 115;
- } else if ($newPrecision <= 12) {
- $newWidth = 130;
- } else {
- $newWidth = 155;
- }
- channelBox -e -pre $newPrecision
- -fieldWidth $newWidth
- mainChannelBox;
- optionVar -iv channelsPrecision $newPrecision;
- optionVar -iv channelsFieldWidth $newWidth;
-
- nudgeChannelsLayersWidth($newWidth-$oldWidth);
- }
- }
- break;
- case "-break":
- channelBox -e -exe "CBdeleteConnection \"#P.#A\";" true mainChannelBox;
- break;
- case "-reset":
- global int $gChannelsLayersWidth;
- optionVar -iv channelsLongName 1; // 1=nice
- optionVar -iv channelsPrecision 3;
- optionVar -iv channelsFieldWidth 65;
- $gChannelsLayersWidth = 180;
- channelBox -e -ln true -nn true
- -precision 3 -fieldWidth 65 mainChannelBox;
- setChannelsLayersWidth ($gChannelsLayersWidth);
- checkSpeedButton "medium" true;
- channelBox -e -hyperbolic false mainChannelBox;
- channelBox -e -useManips "standard" mainChannelBox;
- initChannelBoxButtons;
- break;
- }
- }
-
-
- global proc CBunlockAttr( string $plugName )
- //
- // If this plug or any of its ancestors is locked,
- // unlock it.
- //
- {
- string $lockedPlug = `connectionInfo -gla $plugName`;
- if ( $lockedPlug != "" ){
- setAttr -lock false $lockedPlug;
- }
- }
-
-
- global proc CBdeleteConnection( string $destName )
- //
- // If the specified name is the destination of a connection,
- // then delete that connection.
- //
- {
- if ( `connectionInfo -isDestination $destName` ){
- string $destination = `connectionInfo -getExactDestination $destName`;
-
- // When deleting a src connection from a character, you must remove
- // the item from the character set or the character will no longer
- // work consistently: bug 127212
- //
- string $srcConn[] = `listConnections -s 1 -d 0 -type character $destination`;
- if (size($srcConn)) {
- string $warnMsg = ("Removed \'"+$destination+"\' from character \'"+$srcConn[0]+"\'.");
- warning($warnMsg);
- character -e -rm $srcConn[0] $destination;
- }
-
- // delete -icn doesn't work if destination attr is readOnly
- // so use disconnectAttr in this case
- //
- string $sArr[1] = `ls -ro $destination`;
- if (size($sArr)) {
- string $src = `connectionInfo -sourceFromDestination $destination`;
- disconnectAttr $src $destination;
- } else {
- delete -icn $destination;
- }
- }
- }
-
-
- global proc int selectedChannels( )
- //
- // Checks to see if any channels in the channel box
- // are selected, and returns an int 0/1 depending
- // on whether channels are selected or not
- {
- string $objList[] = `channelBox -q -mainObjectList mainChannelBox`;
- string $attrList[] = `channelBox -q -selectedMainAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- return 1;
- }
-
- $objList= `channelBox -q -shapeObjectList mainChannelBox`;
- $attrList= `channelBox -q -selectedShapeAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- return 1;
-
- }
-
- $objList= `channelBox -q -historyObjectList mainChannelBox`;
- $attrList= `channelBox -q -selectedHistoryAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- return 1;
- }
-
- $objList= `channelBox -q -outputObjectList mainChannelBox`;
- $attrList= `channelBox -q -selectedOutputAttributes mainChannelBox`;
-
- if ( size($objList) > 0 && size($attrList) > 0 ){
- return 1;
- }
-
- return 0;
- }
-
-
- global proc enableDisableChannelMenu( string $parent )
- //
- // Enables or disables menu items in the channelBox
- // menus, based on whether channels are selected or
- // not.
- {
- int $channelsSelected = `selectedChannels`;
-
- menuItem -e -enable $channelsSelected ( $parent + "|keyItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|breakdownItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|muteItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|unmuteItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|copyItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|cutItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|pasteItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|deleteItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|lockItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|unlockItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|exprItem" );
- menuItem -edit -enable $channelsSelected ($parent + "|deleteAttrItem");
- menuItem -e -enable $channelsSelected ( $parent + "|breakItem" );
- menuItem -e -enable $channelsSelected ( $parent + "|drivenItem" );
- }
-
- global proc generateChannelMenu( string $parent, int $popupMenu )
- //
- // Generates the menu on both the menubar and on
- // the RMB, when the user asks for either of these.
- // After building, this proc keeps the state of the
- // longname/shortname checkbox up to date whenever
- // the menu is popped again.
- //
- {
- setParent -m $parent;
-
- if( 0 != `menu -q -ni $parent` ) {
- //
- // The menu already exists - just set the
- // enable/disable state for
- // each of the menuItems that operation on
- // selected channels.
- //
- enableDisableChannelMenu $parent;
-
- // Make sure the name state is correct.
- // It can be changed without using the menu.
- //
- menuItem -edit
- -radioButton ( 1 == `optionVar -query channelsLongName` )
- niceNameItem;
- menuItem -edit
- -radioButton ( 2 == `optionVar -query channelsLongName` )
- longNameItem;
- menuItem -edit
- -radioButton ( 0 == `optionVar -query channelsLongName` )
- shortNameItem;
- } else {
- //
- // The menu doesn't exist yet - build it
- //
- if( $popupMenu ) {
- //
- // A popup menu is being generated - attach
- // a label to the top of the popup
- //
- menuItem -l "Channels";
- menuItem -d true;
- menuItem -d true;
- }
- menuItem -l "Key Selected" -c "channelBoxCommand -key" keyItem;
- menuItem -l "Key All" -c "channelBoxCommand -keyall" keyAllItem;
- menuItem -l "Breakdown Selected" -c "channelBoxCommand -breakdown" breakdownItem;
- menuItem -l "Breakdown All" -c "channelBoxCommand -breakdownall" breakdownAllItem;
- menuItem -l "Mute Selected" -c "channelBoxCommand -mute" muteItem;
- menuItem -l "Mute All" -c "channelBoxCommand -muteall" muteAllItem;
- menuItem -l "Unmute Selected" -c "channelBoxCommand -unmute" unmuteItem;
- menuItem -l "Unmute All" -c "channelBoxCommand -unmuteall" unmuteAllItem;
-
- menuItem -d true;
-
- menuItem -l "Cut Selected" -c "channelBoxCommand -cut" cutItem;
- menuItem -l "Copy Selected" -c "channelBoxCommand -copy" copyItem;
- menuItem -l "Paste Selected" -c "channelBoxCommand -paste" pasteItem;
- menuItem -l "Delete Selected" -c "channelBoxCommand -delete" deleteItem;
-
- menuItem -d true;
-
- menuItem -l "Break Connections" -c "channelBoxCommand -break" breakItem;
-
- menuItem -d true;
-
- menuItem -l "Lock Selected" -c "channelBoxCommand -lock" lockItem;
- menuItem -l "Unlock Selected" -c "channelBoxCommand -unlock" unlockItem;
-
- menuItem -divider true;
-
- menuItem -l "Expressions..." -c "channelBoxCommand -expression" exprItem;
- menuItem -l "Set Driven Key..." -c "channelBoxCommand -driven" drivenItem;
-
- menuItem -divider true;
-
- menuItem -label "Delete Attributes"
- -command "channelBoxCommand -deleteAttributes"
- deleteAttrItem;
-
- menuItem -divider true;
-
- string $menu = `menuItem -l "Settings" -subMenu true`;
- menu -e -pmc ( "buildChannelBoxOptionMenu " + $menu ) $menu;
- setParent -m ..;
-
- menuItem -l "Channel Names" -subMenu true;
- radioMenuItemCollection;
- menuItem -l "Nice"
- -radioButton ( 1 == `optionVar -query channelsLongName` )
- -c "setChannelLongName 1"
- niceNameItem;
- menuItem -l "Long"
- -radioButton ( 2 == `optionVar -query channelsLongName` )
- -c "setChannelLongName 2"
- longNameItem;
- menuItem -l "Short"
- -radioButton ( 0 == `optionVar -query channelsLongName` )
- -c "setChannelLongName 0"
- shortNameItem;
- setParent -m ..;
-
- enableDisableChannelMenu $parent;
- }
- }
-
- global proc buildChannelBoxOptionMenu( string $parent ) {
- //
- // Builds the menu containing the options for various
- // settings in the channel box.
- //
-
- setParent -m $parent;
- menu -e -dai $parent;
-
- radioMenuItemCollection;
- menuItem -l "Slow"
- -radioButton (0.1 == `channelBox -q -speed mainChannelBox`)
- -c "channelBoxSettings slow #1";
- menuItem -l "Medium"
- -radioButton (1.0 == `channelBox -q -speed mainChannelBox`)
- -c "channelBoxSettings medium #1";
- menuItem -l "Fast"
- -radioButton (10.0 == `channelBox -q -speed mainChannelBox`)
- -c "channelBoxSettings fast #1";
- menuItem -d true;
- menuItem -l "Hyperbolic"
- -checkBox `channelBox -q -hyperbolic mainChannelBox`
- -c "channelBoxSettings hyperbolic #1";
- menuItem -d true;
-
- radioMenuItemCollection;
- menuItem -l "No Manips"
- -radioButton ("none" == `channelBox -q -useManips mainChannelBox` )
- -c "channelBoxSettings useManips 0";
- menuItem -l "Invisible Manips"
- -radioButton ("invisible" == `channelBox -q -useManips mainChannelBox` )
- -c "channelBoxSettings useManips 1";
- menuItem -l "Standard Manips"
- -radioButton ("standard" == `channelBox -q -useManips mainChannelBox` )
- -c "channelBoxSettings useManips 2";
- menuItem -d true;
-
- menuItem -label "Change Precision..."
- -command "channelBoxCommand -precision";
-
- menuItem -label "Reset to Default"
- -command "channelBoxCommand -reset";
- }
-